package com.meshnetics.gb.stack.core.apl.type;

import com.meshnetics.gb.type.impl.zcl.FixedBytesDataValue;

/**
 * Type for ProfileId.
 *
 * @author mmarkov
 */
public class TypeProfileId extends TypeClusterId {
    /** The only instance of this type. */
    public static final TypeProfileId TYPE = new TypeProfileId();

    /**
     * Contructs TypeProfileId with the pre-defined name ('profileId').
     */
    private TypeProfileId() {
        super(new String[] { "profileId" });
    }

    /**
     * Creates ProfileId from array of bytes.
     *
     * @param bytes array of bytes
     * @return constructed ProfileId
     */
    protected FixedBytesDataValue createValue(byte[] bytes) {
        return new ProfileId(this, bytes);
    }
}
